package com.guisu.animation.loading.three_circle_loading

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import com.guisu.animation.databinding.ActivityCircleBinding
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch

class MainActivity: AppCompatActivity() {

    private lateinit var binding: ActivityCircleBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityCircleBinding.inflate(layoutInflater)
        setContentView(binding.root)
        // 获取后台数据

        // 获取完，设置为Gone
//        lifecycleScope.launch(Dispatchers.Main) {
//            delay(3000)
//            binding.loadingView.visibility = View.GONE
//        }
    }
}